import request from "@/utils/request.js"
const FileUpload = request.FileUpload
const loginByWeChat = (data)=>{
	return request.post('/Authentication/LoginByWeChat',data)
}

const upload = (data)=>{
	return request.upload(data)
}
const registerAndLoginByWeChat = (data)=>{
	return request.post('/Authentication/RegisterAndLoginByWeChat',data)
}

const getInfo = ()=>{
	return request.get('/user/getuserbymyself')
}
const loginByTest = (acc)=>{
	return request.post('/Authentication/LoginByAccount',acc)
}
const getFollowers = ()=>{
	return request.get("/Follow/GetFollowingList")
}

export default{
	getFollowers,
	loginByTest,
	getInfo,
	FileUpload,
	loginByWeChat,
	registerAndLoginByWeChat,
	upload
}